package com.cjx.auth.feign.impl;

import com.cjx.auth.feign.AuthFeign;
import com.cjx.common.api.CommonResult;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
*@Description fegin错误实现类
*@Verson v1.0.0
*@Author cjunxian
*@Date 
*/
@Component
public class AuthFeignFallback implements AuthFeign {

    @Override
    public CommonResult postAccessToken(Map<String, String> parameters) {
        return CommonResult.failed("获取令牌失败！请联系管理员。");
    }

    @Override
    public Map<String, Object> loadPublicKey() {
        return null;
    }
}
